﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Windows.Controls;

namespace LumenLiquid_Tool.Validators
{
    class EmptyStringValidator:ValidationRule 
    {
        public override ValidationResult Validate(object value, CultureInfo cultureInfo)
        {
            var val = value as string;

            return val == "" ? new ValidationResult(false, "Not empty") : ValidationResult.ValidResult;
        }
    }
}
